
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
  
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" lay-filter="qwe" class="layui-input">
                    <option value="">--请选择--</option>
                    <option value="1" >职位</option>
                    <option value="2" >专区</option>
                    <option value="3" >无跳转</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="image" class="layui-input layui-col-xs6" readonly  placeholder="请上传图片" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="image" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item" id="img1">
            <label class="layui-form-label">选择职位</label>
            <div class="layui-input-block">
                <select name="position_id"  lay-filter="qwe" class="layui-input">
                    <option value="">--请选择--</option>
                    {volist name="position" id="v"}
                    <option value="{$v.id}" >{$v.jobtitle}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item" id="img2">
            <label class="layui-form-label">参数</label>
            <div class="layui-input-block">
                <input type="text" name="parameter" class="layui-input" placeholder="请输入参数" value="{$row.parameter|default=''}">
                <tip>请输入参数</tip>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    layui.use(['form','upload'], function(){
        var form = layui.form;
        var upload = layui.upload;
        $ = layui.$;
        form.on('select(qwe)', function(data){
            var level = data.value;//被点击的radio的value值
            //TODO 下面是我具体业务的处理代码，可忽略 ...
            if(level == 3){
                $("#img1").hide();
                $("#img2").hide();
            }else{
                $("#img1").show();
                $("#img2").show();
            }
        });

    });
</script>